export default {
    namespaced: true,
    state: {
        node: null,
        porjectNode:null,
        porjectNode2:null,
        porjectNode3:null,
        porjectNode4:null,
        porjectNode5:null,
        porjectNode6:null,
        porjectNode7:null,
        userNode: null,
        userNodeTest:null
    },
    mutations: {
        nodeSet (state, node) {
            // store 赋值
            state.node = node
        },
        projectnodeSet (state, porjectNode) {
            // store 赋值
            state.porjectNode = porjectNode
        },
        projectnodeSet2 (state, porjectNode2) {
            // store 赋值
            state.porjectNode2 = porjectNode2
        },
        projectnodeSet3 (state, porjectNode3) {
            // store 赋值
            state.porjectNode3 = porjectNode3
        },
        projectnodeSet4 (state, porjectNode4) {
            // store 赋值
            state.porjectNode4 = porjectNode4
        },
        projectnodeSet5 (state, porjectNode5) {
            // store 赋值
            state.porjectNode5 = porjectNode5
        },
        projectnodeSet6 (state, porjectNode6) {
            // store 赋值
            state.porjectNode6 = porjectNode6
        },
        projectnodeSet7 (state, porjectNode7) {
            // store 赋值
            state.porjectNode7 = porjectNode7
        },
        userNodeSet(state, userNode) {
            state.userNode = userNode
        },
        userNodeTestSet(state,testnode){
            state.userNodeTest = testnode;
        }
    },
    actions: {
        setnode(context,node) {
            context.commit("nodeSet",node);
        },
        setProjectnode2(context,projectnode2) {
            context.commit("projectnodeSet2",projectnode2);
        },
        setProjectnode(context,projectnode) {
            context.commit("projectnodeSet",projectnode);
        },
        setProjectnode3(context,projectnode3) {
            context.commit("projectnodeSet3",projectnode3);
        },
        setProjectnode4(context,projectnode4) {
            context.commit("projectnodeSet4",projectnode4);
        },
        setProjectnode5(context,projectnode5) {
            context.commit("projectnodeSet5",projectnode5);
        },
        setProjectnode6(context,projectnode6) {
            context.commit("projectnodeSet6",projectnode6);
        },
        setProjectnode7(context,projectnode7) {
            context.commit("projectnodeSet7",projectnode7);
        },
        setUserNode(context, userNode) {
            context.commit("userNodeSet", userNode);
        },
        setTest(context,test){
            context.commit("userNodeTestSet", test);
        }
    }

}
